package com.weds.edpf.core.mapper;

import com.weds.core.annotation.MyBatisDao;
import com.weds.edpf.core.entity.NGateRealEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author
 * @Description 管理
 * @Date 2020-06-11
 */
@MyBatisDao
public interface NGateRealMapper {
    /**
     */
    int deleteByPrimaryKey(Integer xh);

    /**
     */
    int insert(NGateRealEntity record);

    /**
     */
    int insertBatch(@Param("list") List<NGateRealEntity> list);

    /**
     */
    int insertSelective(NGateRealEntity record);

    /**
     */
    NGateRealEntity selectByPrimaryKey(Integer xh);

    /**
     */
    int updateByPrimaryKeySelective(NGateRealEntity record);

    /**
     */
    int updateByPrimaryKey(NGateRealEntity record);

    /**
     */
    List<NGateRealEntity> selectListByEntity(NGateRealEntity record);

    /**
     */
    int deleteBatchByKeys(@Param("list") List<NGateRealEntity> list);

    /**
     * 统计场所下门数量
     */
    int countDepDoor(Integer depSerial);
}